﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="notify_manage_querylist.aspx.cs" Inherits="Ccit.OA.Notify.notify_manage_querylist" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v8.1" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v8.1" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>通知管理-查询条件设置</title>
     <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" src="../script/jwindow.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
    <script type="text/javascript">
        function doDelete(sQueryId)
        {
            if(confirm("删除当前记录,是否继续?")) 
                        PageMethods.DoOperate(sQueryId,ClientCallBack);
        }
        function ClientCallBack(vResult)
        {
            if(vResult!="-999")
            {
                __doPostBack("lnbQuery","");
                alert("操作成功!")
                 return true;
            }
            else
            {
                alert("服务器繁忙,请稍候重新操作!")
                 return false;
            }
        }
        function Operate(vQueryId)
        {
             var typeId = document.getElementById("_hidType").value;
             var vPageParam = "QueryId="+vQueryId+"&Type="+typeId;
             var encodeParam = base64encode(vPageParam);
             var Url = "notify_manage_queryedit.aspx?" + encodeParam;
             parent.frames[1].document.location.href=Url;            
        }
    </script>
</head>
<body>
    <ccit:ActionForm id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>       
        <asp:LinkButton ID="lnbQuery" CssClass="linktext" runat="server" 
                             style="display:none" onclick="lnbQuery_Click"></asp:LinkButton>
     <input id="_hidType" type="hidden" runat="server" />
         <table cellpadding="0" cellspacing="0" width="98%" align="center">
                                <tr>
                                    <td colspan="3" width="100%">
                                      <dxwgv:ASPxGridView ID="dgMain" runat="server"
                                AutoGenerateColumns="False" Width="100%" KeyFieldName="queryid" onhtmlrowcreated="dgMain_HtmlRowCreated"  
                                             >
                                            <SettingsPager AlwaysShowPager="True" PageSize="15">
                                                <FirstPageButton Visible="True">
                                                </FirstPageButton>
                                                <LastPageButton Visible="True">
                                                </LastPageButton>
                                            </SettingsPager>
                                             <Styles>
                                                <Row CssClass=""></Row>
                                                <AlternatingRow  CssClass="" Enabled="true"/>
                                                <SelectedRow  CssClass=""></SelectedRow>                
                                            </Styles>  
                                            <Columns>                                                  
                                                  <dxwgv:GridViewDataTextColumn Caption="名称" VisibleIndex="7" width="12%" FieldName="queryname">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn> 
                                                 <dxwgv:GridViewDataTextColumn Caption="操作" VisibleIndex="8" width="4%">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                   <DataItemTemplate>
                                                   <nobr>                                                         
                                                        <a id="lnbDel" runat="server">删除</a>  
                                                        </nobr>
                                                   </DataItemTemplate>
                                                </dxwgv:GridViewDataTextColumn>
                                            </Columns> 
                                        </dxwgv:ASPxGridView>
                                    </td>
                                </tr>
                            </table>
    </ccit:ActionForm>
</body>
</html>
